package com.industrial.premu.mapper;

import com.industrial.premu.domain.PreMuDifferentiationPolicyItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 差别化政策条款Mapper接口
 *
 * @author ruoyi
 * @date 2024-02-27
 */
public interface PreMuDifferentiationPolicyItemMapper
{
    /**
     * 查询差别化政策条款
     *
     * @param baseId 差别化政策条款主键
     * @return 差别化政策条款
     */
    public PreMuDifferentiationPolicyItem selectPreMuDifferentiationPolicyItemByBaseId(String baseId);

    /**
     * 查询差别化政策条款列表
     *
     * @param preMuDifferentiationPolicyItem 差别化政策条款
     * @return 差别化政策条款集合
     */
    public List<PreMuDifferentiationPolicyItem> selectPreMuDifferentiationPolicyItemList(PreMuDifferentiationPolicyItem preMuDifferentiationPolicyItem);

    /**
     * 新增差别化政策条款
     *
     * @param preMuDifferentiationPolicyItem 差别化政策条款
     * @return 结果
     */
    public int insertPreMuDifferentiationPolicyItem(PreMuDifferentiationPolicyItem preMuDifferentiationPolicyItem);

    /**
     * 修改差别化政策条款
     *
     * @param preMuDifferentiationPolicyItem 差别化政策条款
     * @return 结果
     */
    public int updatePreMuDifferentiationPolicyItem(PreMuDifferentiationPolicyItem preMuDifferentiationPolicyItem);

    /**
     * 删除差别化政策条款
     *
     * @param baseId 差别化政策条款主键
     * @return 结果
     */
    public int deletePreMuDifferentiationPolicyItemByBaseId(String baseId);

    /**
     * 批量删除差别化政策条款
     *
     * @param baseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePreMuDifferentiationPolicyItemByBaseIds(String[] baseIds);

    /**
     * 批量插入条款
     * @param items
     */
    void batchInsertPolicyItem(@Param("list") List<PreMuDifferentiationPolicyItem> items);

    /**
     * 根据PkId删除所有的条款
     * @param baseId
     */
    void deletePreMuDifferentiationPolicyItemByPkId(@Param("pkId") String baseId);

}

